package auction.model;

import java.util.*;
import hello.*;

public class UserOneToManyJoin{
	private Long id;
	private String name;
	private Address shippingAddress;
	private Set<Bid> bids=new HashSet<Bid>();
	
	private Set<ItemOneToManyJoin> boughtItems=new HashSet<ItemOneToManyJoin>();
	
	public void setBoughtItems(Set<ItemOneToManyJoin> b){
		this.boughtItems=b;
	}
	
	public Set<ItemOneToManyJoin> getBoughtItems(){
		return boughtItems;
	}
	
	public UserOneToManyJoin(){
	}
	
	public UserOneToManyJoin(String s){
		name=s;
	}
	
	
	
	public Long getId(){
		return id;
	}
	public void setId(Long i){
		id=i;
	}
	
	public void setBids(Set<Bid> i){
		bids=i;
	}
	public Set<Bid> getBids(){
		return bids;
	}
	/* GOOD!!! */
	public void addBid(Bid bid){

		bids.add(bid);
	}
	
	public String getName(){
		return name;
	}
	public void setName(String i){
		name=i;
	}
	
	public Address getShippingAddress(){
		return shippingAddress;
	}
	public void setShippingAddress(Address i){
		shippingAddress=i;
	}
}